import request from '@/utils/request'

export default {
  approveList(params) {
    return request({
      url: '/v1/approveList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/approve/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/approveUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/approveAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/approveDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/approveAppend',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: '/v1/approveRemove',
      method: 'post',
      data
    })
  },
  orders() {
    return request({
      url: '/v1/orders',
      method: 'get',
    })
  },
  excel(data) {
    return request({
      url: '/v1/approveExcel',
      method: 'post',
      data
    })
  },
  excels(data) {
    return request({
      url: '/v1/eqGroupsExcel',
      method: 'post',
      data
    })
  }
}
